
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class CampFree_choiceCfg : public ManualSingleton <CampFree_choiceCfg>
{
	friend ManualSingleton <CampFree_choiceCfg>;
public:
	CampFree_choiceCfg();
	~CampFree_choiceCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const CampFree_choiceCfgInfo *GetCampFree_choiceCfgInfo(int32_t campId);
	const CampFree_choiceCfgMap *GetCampFree_choiceCfgMap() { return &m_CampFree_choiceCfgMap; }
private:
	CampFree_choiceCfgMap m_CampFree_choiceCfgMap;
};

#define  g_MakeCampFree_choiceCfgTable() (CampFree_choiceCfg::Instance())
#define  g_GetCampFree_choiceCfgTable() (CampFree_choiceCfg::GetInstance())
#define  g_DelCampFree_choiceCfgTable() (CampFree_choiceCfg::Destroy())